alter  trigger [dbo].[tfb_wagepaydtl_ai] on [dbo].[tfb_wagepaydtl]
after insert
as    
begin    
  set nocount on
  update tfb_wagemonthfix set payed=1     from tfb_wagemonthfix m, inserted p    where m.bid=p.wageno and m.empid=p.empidend

